//
//  UIButton+ Extension.swift
//  sinaWB
//
//  Created by Macdav on 16/4/9.
//  Copyright © 2016年 Dav. All rights reserved.
//

import UIKit

extension UIButton {
convenience init (title:String,color:UIColor,imageName:String){
        self.init()
       setTitle(title, forState: UIControlState.Normal)
       setTitleColor(color, forState: UIControlState.Normal)
       setBackgroundImage(UIImage(named:imageName), forState: UIControlState.Normal)
    }
}